<h2>手动月度统计日志</h2>
<?php echo CHtml::beginForm(array('manual_stat_log'),'post');?>
<table  style="margin: 0 auto;"  width="500">
<tr><td>
	操作者姓名：<input type="text" name="keys[name]" size="5" value="<?php echo isset($_GET['keys']['name'])?$_GET['keys']['name']:'';?>"/>
	统计时间：<input type="text" id="s_date" name="keys[s_date]" size="7" value="<?php echo isset($_GET['keys']['s_date'])?$_GET['keys']['s_date']:'';?>"/>
	<?php $this->widget('application.extensions.calendar.SCalendar',array('inputField'=>'s_date','ifFormat'=>'%Y-%m'));?>
	模糊查询：<?php echo CHtml::radioButtonList('keys[blur]',isset($_GET['keys']['blur'])?$_GET['keys']['blur']:1,array(1=>'是',0=>'否'),array('separator'=>' '));?>
	<input type="submit" value="搜索"/>
</td></tr></table>
<?php echo CHtml::endForm();?>
<table class="dataGrid" width="400">
  <thead>
  <tr>
    <th width="100"><?php echo $sort->link('name'); ?></th>
    <th width="100"><?php echo $sort->link('stat_date'); ?></th>
    <th width="200"><?php echo $sort->link('create_time'); ?></th>
  </tr>
  </thead>
  <tbody>
<?php foreach($models as $n=>$model): ?>
  <tr class="<?php echo $n%2?'even':'odd';?>">
    <td><?php echo CHtml::encode($model->name); ?></td>
    <td><?php echo CHtml::encode(substr($model->stat_date,0,7)); ?></td>
    <td><?php echo CHtml::encode($model->create_time); ?></td>
  </tr>
<?php endforeach; ?>
  </tbody>
</table>
<br/>
<?php $this->widget('CLinkPager',array('pages'=>$pages,'htmlOptions'=>array('style'=>'width:400px;'))); ?>